package com.leo.util;

import org.springframework.web.context.support.WebApplicationObjectSupport;

/**
 * @ClassName: ApplicationContextUtil2
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-01 18:53
 * @Version: 1.0
 */
public class ApplicationContextUtil3 extends WebApplicationObjectSupport{

    /**
     * 通过bean的id获取bean对象
     * @param beanName
     * @return
     */
    public Object getBean(String beanName){
        return super.getWebApplicationContext().getBean(beanName);
    }

}
